package kasgroup2;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;

class Participant extends Person {

    private Date arrivalDate;
    private Date departureDate;
    private Companion companion;
    
    public Participant() {
        
    }
    
    /**
     * 
     * @param p_Name
     * @param p_Address
     * @param p_City
     * @param p_Country
     * @param p_FirmName
     * @param p_PhoneFirm
     * @param p_PhoneHome
     * @param p_Arrival
     * @param p_Departure
     * @param p_Hotels
     * @param p_Companion 
     */
    public Participant(
                        String p_Name, 
                        String p_Address, 
                        String p_City, 
                        String p_Country, 
                        String p_FirmName, 
                        String p_PhoneFirm, 
                        String p_PhoneHome, 
                        Date p_Arrival, 
                        Date p_Departure, 
                        Companion p_Companion) {
        super(p_Name, p_Address, p_City, p_Country, p_FirmName, p_PhoneFirm, p_PhoneHome);
        this.arrivalDate = p_Arrival;
        this.departureDate = p_Departure;
        this.companion = p_Companion;
    }
    
    public Boolean getHasCompanion() {
        if(companion != null) {
            return true;
        }
        return false;
    }
    
    public Date getArrivalDate() {
        return arrivalDate;
    }

    public Date getDepartureDate() {
        return departureDate;
    }

    public Companion getCompanion() {
        return companion;
    }
}